package com.cookor.poi.modules.phy.entity;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.modules.tenant.entity.TTenant;
import javax.validation.constraints.NotNull;

public class TShift extends DataEntity<TShift> {
  public static int am = 1;
  
  public static int pm = 2;
  
  private static final long serialVersionUID = 1L;
  
  private Integer tenantId;
  
  private Integer shiftName;
  
  private String beginDate;
  
  private String endDate;
  
  private TTenant tenant;
  
  private String tenantName;
  
  public TShift() {}
  
  public TShift(String id) {
    super(id);
  }
  
  @NotNull(message = "租户id不能为空")
  public Integer getTenantId() {
    return this.tenantId;
  }
  
  public void setTenantId(Integer tenantId) {
    this.tenantId = tenantId;
  }
  
  public Integer getShiftName() {
    return this.shiftName;
  }
  
  public void setShiftName(Integer shiftName) {
    this.shiftName = shiftName;
  }
  
  @NotNull(message = "开始时间不能为空")
  public String getBeginDate() {
    return this.beginDate;
  }
  
  public void setBeginDate(String beginDate) {
    this.beginDate = beginDate;
  }
  
  @NotNull(message = "结束时间不能为空")
  public String getEndDate() {
    return this.endDate;
  }
  
  public void setEndDate(String endDate) {
    this.endDate = endDate;
  }
  
  public TTenant getTenant() {
    return this.tenant;
  }
  
  public void setTenant(TTenant tenant) {
    this.tenant = tenant;
  }
  
  public String getTenantName() {
    return this.tenantName;
  }
  
  public void setTenantName(String tenantName) {
    this.tenantName = tenantName;
  }
}
